{% if inserts %}
<tbody class="variants-collapse">
<tr class="variants-start-row">
    <td colspan="3"> <td>insert:</td> <td colspan="2"> {
       {% for data in inserts.items %}
           {{ data.0 }}:{{data.1|length}} {% if not forloop.last %},{% endif %}
       {% endfor %}
    }
    </td>
</tr>
</tbody>
<tbody class="variants-collapsible">
{% for data in inserts.items %}
   {% for p in data.1 %} 
     <tr>
       <td colspan="4"> </td><td> ++ {{data.0}} </td>
       <td><a class="witness" href="/display/witness/{{p.0.witness.key}}">{{p.0.witness.signature}}&nbsp;{{p.0.witness.folia}}</a></td>
     <tr>
   {% endfor %}
{% endfor %}
</tbody>
{% endif %}
{% if word %}
<tbody class="variants-collapse">
<tr> 
   <td>{{index}}</td><td>{{ word }}</td><td>{{count}}</td> <td>synonyms:</td> <td colspan="2"> {
       {% for data in synonyms.items %}
           {{ data.0 }}:{{data.1|length}} {% if not forloop.last %},{% endif %}
       {% endfor %}
    }
    </td>
</tr>
</tbody>
<tbody class="variants-collapsible">
{% for data in synonyms.items %}
   {% for p in data.1 %} 
     <tr>
       <td colspan="4"> </td><td>++ {{data.0}} </td> 
       <td><a class="witness" href="/display/witness/{{p.witness.key}}">{{p.witness.signature}}&nbsp;{{p.witness.folia}}</a></td>
     </tr>
   {% endfor %}
{% endfor %}  
</tbody>
{% for data in replace.items %}
<tbody class="variants-collapse">
<tr> 
    <td colspan="3"></td> <td>replace:</td> <td colspan="2"> {{ data.0 }} </td>
</tr>
</tbody>
<tbody class="variants-collapsible">
   {% for p in data.1 %} 
     <tr>
       <td colspan="4"> </td><td> +++ </td>
       <td><a class="witness" href="/display/witness/{{p.0.witness.key}}">{{p.0.witness.signature}}&nbsp;{{p.0.witness.folia}}</a></td>
     </tr>
   {% endfor %}
</tbody>
{% endfor %}  
{% if deletes %}
<tbody class="variants-collapse">
<tr>
    <td colspan="3"> <td>delete:</td> <td colspan="2"> {
       {% for data in deletes.items %}
           {{ data.0 }}:{{data.1|length}} {% if not forloop.last %},{% endif %}
       {% endfor %}
    }
    </td>
</tr>
</tbody>
<tbody class="variants-collapsible">
{% for data in deletes.items %}
   {% for p in data.1 %}  
     <tr>
       <td colspan="4"> </td><td> ++ {{data.0}} </td>
       <td><a class="witness" href="/display/witness/{{p.0.witness.key}}">{{p.0.witness.signature}}&nbsp;{{p.0.witness.folia}}</a></td>
     <tr>
   {% endfor %}
{% endfor %}
</tbody>
{% endif %}
{% endif %}
